package org.hy.domain.friends;

import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.hy.domain.User;

/**
 * 好友类
 * @author xwm
 *
 */
public class Friend {
	
	public static int FAM_STRANGE = 1;
	public static int FAM_FRIEND = 2;
	public static int FAM_1= 4;
	public static int FAM_2 = 8;
	public static int FAM_3 = 16;
	
	private Integer id;
	private Integer uid;
	private User friend;
	private int familiarity;
	private Date intime;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	public User getFriend() {
		return friend;
	}
	public void setFriend(User friend) {
		this.friend = friend;
	}
	public int getFamility() {
		return familiarity;
	}
	public void setFamiliarity(int familiarity) {
		this.familiarity = familiarity;
	}
	
	public Date getIntime() {
		return intime;
	}
	public void setIntime(Date intime) {
		this.intime = intime;
	}
	public int getFamiliarity() {
		return familiarity;
	}
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	
	
	@Override
	public String toString() {
		//ToStringBuilder tsb = new ToStringBuilder(this);
		//tsb.append(uid).append(friend).append(familiarity);
		//return tsb.toString();
		return ToStringBuilder.reflectionToString(this);
	}
	
}
